package com.dylan.util;

import java.util.List;

/**
 * 分页工具类 存放分页相关数据
 * 
 * @author dylanchan
 *
 * @param <T>
 */
public class Page<T> {
	private int pageNum; // 当前页码
	private int numPerPage; // 每页条数
	private int totalCount; // 总记录数
	private int totalPageNum; // 总页数
	private List<T> data; // 当前页需要的数据

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getNumPerPage() {
		return numPerPage;
	}

	public void setNumPerPage(int numPerPage) {
		this.numPerPage = numPerPage;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getTotalPageNum() {
		return totalPageNum;
	}

	public void setTotalPageNum(int totalPageNum) {
		this.totalPageNum = totalPageNum;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

}
